<template>
    <div>
        <Table
            ref="awbhTable"
            :columns="columns"
            :data="data"
        />
        <div @click="selectAllInnerTable">全选innerTable</div>
    </div>
</template>
<script>
export default {
    props: {
        row: Object
    },
    data() {
        return {
            columns: [
                {
                    type: "selection",
                    align: "center"
                },
                { title: "特货代码", key: "specopeId", minWidth: 100 },
                { title: "品名代码", key: "cargoNo", minWidth: 100 },
                { title: "不正常", key: "abnName", minWidth: 100 },
                { title: "代理人", key: "shpCustomerId", minWidth: 100 },
                { title: "收货人", key: "cnsnName", minWidth: 100 },
            ],
            data: [
                {specopeId: 123, _checked: false},
                {specopeId: 123, _checked: false},
                {specopeId: 123, _checked: false},
                {specopeId: 123, _checked: false},
                {specopeId: 123, _checked: false},
            ]
        };
    },
    methods: {
        selectAllInnerTable(){
            this.data.map(item => item._checked = true)
        }
    }
};
</script>
